import pypinyin

def chinese_to_pinyin(str):
    res = lazy_pinyin(str)
    ss = ""
    for r in res:
        ss = ss + r
    return ss
